/*
 * @Description:
 * @Author:  huangshuai
 * @Date: 2023-10-16 16:29:27
 * @LastEditTime: 2023-10-22 09:28:44
 * @LastEditors: huangshuai
 */
import axios from "@/utils/request";

//获取举报信息
export function getListReportInfo(
  content: string = "",
  page: number = 1,
  pageSize: number = 10,
  reportCategory: string = ""
) {
  return axios.service({
    url: `/report/listReportInfo?content=${content}&page=${page}&pageSize=${pageSize}&reportCategory=${reportCategory}`,
    method: "get",
  });
}
//改变举报信息审核状态
export function updateReportExamineStatus(reportId: Number, status: Number) {
  return axios.service({
    url: `/report/updateReportExamineStatus/${reportId}/${status}`,
    method: "put",
  });
}
//社区管理员推送信息给被举报用户
export function addReportInfoToUser(data: any) {
  return axios.service({
    url: "/report/addReportInfoToUser",
    method: "post",
    data,
  });
}
//社区管理员查看申请取消不良记录汇总
export function listApplyCancelBadRecordInfo(
  page: number | string,
  pageSize: number | string
) {
  return axios.service({
    url: `/report/listApplyCancelBadRecordInfo?page=${page}&pageSize=${pageSize}`,
    method: "get",
  });
}
//社区管理员处理申请不良记录信息
export function updateBadRecordStatus(reportId: number, status: number) {
  return axios.service({
    url: `/report/updateBadRecordStatus/${reportId}/${status}`,
    method: "put",
  });
}
